package com.service;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;
import com.dao.LogDao;
import com.util.MySqlSessionFactory;

public class LogService {
	SqlSession session = MySqlSessionFactory.getSqlSession();
	LogDao dao = session.getMapper(LogDao.class);

	public void add(@Param("users_id") String users_id,
			@Param("archive_id") String archive_id,
			@Param("operation") String operation) {
		dao.add(users_id,archive_id,operation);
		session.commit();
	}

}
